package com.usian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.pojo.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;



public interface UsersMapper extends BaseMapper<User> {
    @Select("select * from user where userName=#{userName} and password=#{password}")
    User login(User user);

//    public List<User>findAll();

//    @Select("SELECT * FROM user where userName=#{userName} and password=#{password} ")
//    public List<User>findByUserName(@Param("userName") String userName,@Param("password") String password);

}
